package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author mengyb
 * @since 2019/04/12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAV_T")
public class GwavT extends PO<GwavT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAVENT",type = IdType.INPUT)
    private String GWAVENT;
    private String GWAV001;
    private String GWAV002;
    private String GWAV003;
    private String GWAVACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWAVUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWAVGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWAVMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWAVTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWAVDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWAVORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWAVORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWAVENT;
    }
}
